#include <iostream>
using namespace std;

int main()
{
	int a, b, n, m;
	cin >> a >> b >> n;
	m = a + (n - 1) * (b - a);
	cout << m << endl;
	return 0;
}
